/**
 * 中国9号健康产业有限公司
 * Copyright (C) JiuHaoHealth Corporation. All Rights Reserved
 */
package com.jiuhaohealth.kangxun360.member;

import javax.annotation.Resource;

import net.sf.json.JSONObject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.jiuhaohealth.common.util.Message;


/**
 * @description 会员Control
 * @author tangjiaxu(tangjiaxu@jiuhaohealth.com)
 * @time Mar 20, 2014 4:44:04 PM
 * @version 2.0
 */
@Controller
@RequestMapping("/")
public class MemberController {
	
	protected final static Logger logger = LoggerFactory.getLogger(MemberController.class);
	
	private final static Integer PAGE_SIZE = 10; 
	
	@Resource(name="memberService")
	private MemberService memberService;
	
	/**
	 * @description 获取会员基本信息
	 * @author tangjiaxu(tangjiaxu@jiuhaohealth.com)
	 * @time Mar 20, 2014 4:44:39 PM
	 * @version 2.0
	 */
	@RequestMapping(value = {"/member/getMemberBasicInfo"}, method = RequestMethod.GET)
	public ModelAndView getMemberBasicInfo() {
		ModelAndView modelAndView=new ModelAndView();
		modelAndView.setViewName("test");
//		modelAndView.addObject("member", JSONObject.fromObject(memberService.getMemberBasicInfo()).toString());
		modelAndView.addObject("member", memberService.getMemberBasicInfo());
		return modelAndView;
	}
	
}
